from django.urls import path
from .views import *

app_name = 'travel'

urlpatterns =[
    path('get_tags', Tags.as_view(), name='get_tags'),
    path('get_all_city', AllCity.as_view(), name='get_all_city'),
    path('get_map', MapData.as_view(), name='get_map'),
    path('get_top_travel', TopTravel.as_view(), name='get_top_travel'),
    path('get_travel_star', TravelStar.as_view(), name='get_travel_star'),
    path('getTravelListByCityId', TravelListByCityId.as_view(), name='getTravelListById'),
    path('selectTravelPage', SelectTravelPage.as_view(), name='select_travel_page'),
    path('getHotTravel', get_hot_travel_data, name='get_hot_travel_data'),
    path('getTravelDetail', get_travel_detail, name='get_travel_detail'),

    # 景点增删改查接口
    path('operation', TravelOperation.as_view(), name='travel_operation'),

    # 推荐相关接口
    path('unLoginRecommend', un_login_recommend, name='un_login_recommend'),
    path('recommendItem', RecommendItem.as_view(), name='recommend_item'),

    # 下载景点数据
    path('download', DownLoadTravel.as_view(), name='download_travel')
]